function 下滑 () {
    var x1 = random(290, 310)
    var y1 = random(580, 610)
    var x2 = random(290, 310)
    var y2 = random(90, 110);
    swipe(x1, y1, x2, y2, random(500, 1000));
}


// press(random(90, 100), random(400, 450), random(50, 88));
// let backButton = id('gzx').findOne();

// text('7天').waitFor();
// log('7天');
// let list = id('hn0').findOne();
// log('开始遍历');
// list.children().forEach(child => {
//   if (child && child.clickable()) {
//     log('ok');
    

//   }
  

// })

// id('e2d').findOne().click();
let backButton = id('gzx').findOne();

while(!backButton.click());
log('返回直播间');